﻿

namespace xpds_ProductMonitor.Models
{
    /// <summary>
    /// 缺岗数据模型
    /// </summary>
    public class StuffOutWorkModel
    {
        /// <summary>
        /// 员工姓名 
        /// </summary>
        public string? StuffName { get; set; }

        /// <summary>
        /// 职位
        /// </summary>
        public string? Position { get; set; }

        /// <summary>
        /// 缺岗次数
        /// </summary>
        public int OutWorkCount { get; set; }

        /// <summary>
        /// 界面显示宽度
        /// </summary>
        public int ShowWidth
        {
            get
            {
                int temp = OutWorkCount * 70 / 100;
                if (temp >=180)
                {
                    return 150;
                }

                return temp;
            }
        }
    }
}
